package cn.myfirefly.moming.portal.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "mm_role_function")
public class MMRoleFunction implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2750821878506880664L;
	private Integer roleFunSn;
	private Integer roleSn;
	private String permission;
	private Integer funSn;

	public MMRoleFunction() {
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "role_fun_sn", unique = true, nullable = false)
	public Integer getRoleFunSn() {
		return this.roleFunSn;
	}

	public void setRoleFunSn(Integer roleFunSn) {
		this.roleFunSn = roleFunSn;
	}

	@Column(name = "role_sn")
	public Integer getRoleSn() {
		return this.roleSn;
	}

	public void setRoleSn(Integer roleSn) {
		this.roleSn = roleSn;
	}

	@Column(name = "fun_sn")
	public Integer getFunSn() {
		return this.funSn;
	}

	public void setFunSn(Integer funSn) {
		this.funSn = funSn;
	}

	@Column(name = "permission", length = 2)
	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

}
